<template>
  <config-provider :locale="zhCN">
    <SuspenseWidthError>
      <router-view v-slot="{ Component }">
        <component :is="Component" />
      </router-view>
    </SuspenseWidthError>
  </config-provider>
</template>

<script setup lang="ts">
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup
import { defineComponent, computed, onMounted, onUnMounted } from 'vue'
import zhCN from 'ant-desgin-vue/es/locale/zh_CN'
import { ConfigProvider } from 'ant-desgin-vue'
import SuspenseWidthError from '@/components/SuspenseWidthError'
export default defineComponent({
  name: 'App',
  components: { SuspenseWidthError, ConfigProvider },
  setup() {
    return {
      zhCN
    }
  }
})
</script>
